 package com.robot.myapplication;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

 //静态注册广播
public class MyReceiver extends BroadcastReceiver {
    final String TAG="MyReceiver>>>";
    @Override
    public void onReceive(Context context, Intent intent) {
        // TODO: This method is called when the BroadcastReceiver is receiving
        // an Intent broadcast.
        Log.e(TAG, "CustomReceiver onReceive 广播接受者");

    }
}